import {RouteRecordRaw} from "vue-router";
import {PORTAL_LAYOUT as Layout} from "/@/constants";


const menuRoutes: RouteRecordRaw[] = [
    {
        path: '/home',
        component: Layout,
        meta: {
            title: '网站主页'
        },
        children: [{
            path: 'index',
            name: 'Home',
            component: () => import("/@/views/portal/home/index.vue"),
            meta: {
                title: '网站主页',
                hideMenu: true,
                ignoreAuth: true
            },
        }]
    },    {
        path: '/about',
        component: Layout,
        meta: {
            title: '关于'
        },
        children: [{
            path: 'index',
            name: 'About',
            component: () => import("/@/views/portal/about/index.vue"),
            meta: {
                title: '关于',
                hideMenu: true,
                ignoreAuth: true
            },
        }]
    },
    {
        path: '/module1',
        component: Layout,
        meta: {
            title: "模块1"
        },
        children: [
            {
                path: 'index',
                name: 'Module1',
                component: () => import("/@/views/portal/module1/index.vue"),
                meta: {
                    title: '模块1',
                    hideMenu: true,
                    ignoreAuth: true
                },
            }
        ]
    },
]


export const portalRoutes: RouteRecordRaw[] = [
    ...menuRoutes
]
